package com.lipl.base.javase.designpattern.decoartor.V1;

/**
 * @Auther: 15541
 * @Date: 2020/12/16 10:01
 * @Description:
 */
public class BattercakeTest {

    public static void main(String[] args) {

        Battercake battercake = new Battercake();
        System.out.println(battercake.getMsg()+",总价格："+ battercake.price());

        Battercake battercakeWithEgg = new BattercakeWithEgg();
        System.out.println(battercakeWithEgg.getMsg()+",总价格："+ battercakeWithEgg.price());

        Battercake battercakeWithEggAndSausage = new BattercakeWithEggAndSausage();
        System.out.println(battercakeWithEggAndSausage.getMsg()+",总价格："+ battercakeWithEggAndSausage.price());
    }
}

